<template>
  <div>
    <div class="header">
      <div class="left">
        <a href="#" >
          <i :class="[imgName]" @click="fn"></i>
        </a>
      </div>
      <div class="title">
        <slot >{{msg}}</slot>
      </div>
      <div>

      </div>
    </div>
  </div>

</template>

<script>
  import bus from '../bus'

  export default {
    data() {
      return {
      }
    },
    props:{
      msg:String,
      imgName:String,
    },
    computed:{

    },
    methods:{
      fn(){
        this.$emit('close');
        bus.$emit('closeList');
      }
    }
  }
</script>

<style scoped type="text/css" rel="stylesheet/sass" lang="scss">
  @import "../common/style/scss/common.scss";

  .header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    height: 80px;
    font-size: 22px;
    color: #000;
    align-items: center;
    border-bottom: 1px solid #bcbcbc;
    background: #fff;

  .left{
    position: absolute;
    margin-left: 26px;

  .arrow-left{
    display: block;
    width: 22px;
    height: 30px;
    background: url("../common/images/arrow-left.png") no-repeat center / cover;
  }
  .close{
    display: block;
    width: 22px;
    height: 30px;
    background: url("../common/images/close.png") no-repeat center / cover;
  }
  }
  .title{
    width: 400px;
    font-size: 26px;
    margin: 0 auto;
    text-align: center;
  }
  }




</style>
